var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var Computer = /** @class */ (function () {
    function Computer(name) {
        this.name = name;
    }
    return Computer;
}());
var Lenovo = /** @class */ (function (_super) {
    __extends(Lenovo, _super);
    function Lenovo(name) {
        return _super.call(this, name) || this;
    }
    Lenovo.prototype.playMusic = function () {
        console.log("大音响");
    };
    Lenovo.prototype.hasUSBNumber = function (num) {
        if (num === void 0) { num = 4; }
        console.log("\u4FFA\u6709" + num + "\u4E2A\u63D2\u53E3");
        return num > 0;
    };
    return Lenovo;
}(Computer));
var xin = new Lenovo("联想小新pro13");
xin.hasUSBNumber(5);
xin.playMusic();
// 创建抽象类的实例
// const abs = new Computer("hh") // 报错
